package org.micro.rbac.core.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author hongsir
 * @apiNote 摘要:自定义拦截器注解,包含ICO注入
 * @since 2019-11-18 11:36
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Component
public @interface Intercept {
    /**
     * 需要拦截的url
     * @return
     */
    String[] include() default {"/**"};

    /**
     * 不需要拦截的url
     * @return
     */
    String[] exclude() default {};

    /**
     * 优先级 拦截器拦截顺序 数字越低优先度越高
     * @return
     */
    int priority() default 99;
}
